/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.designPatterns.creational.abstractFactory.factory.impl;

import ac.za.designPatterns.creational.abstractFactory.factory.StudentFactory;
import ac.za.designPatterns.creational.abstractFactory.model.*;

/**
 *
 * @author Sandiso Toto
 */
public class PostGradFactory extends StudentFactory{

  
    @Override
    public Student getStudentType(String type) {
        if("post_grad".equals(type)){
            return new Post_Grad();
        }else{
                return new Under_Grad();
         }
        
    }
    
}
